package ioc08;

import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;

public class Test {
    public static void main(String[] args) {
        ApplicationContext ac = new ClassPathXmlApplicationContext("ioc08/spring.xml");
         System.out.println("*****************************************");
        SomeBean someBean = (SomeBean) ac.getBean("someBean");
         System.out.println("========================================");


        /*Resource re = new ClassPathResource("ioc08/spring.xml");
        XmlBeanFactory factory = new XmlBeanFactory(re);
        System.out.println("*****************************************");
        SomeBean someBean1 = (SomeBean) factory.getBean("someBean");*/

    }
}
